﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QLVB/User/User.master" AutoEventWireup="true" CodeFile="VanBanDaDuyet.aspx.cs" Inherits="QLVB_User_VanBanDaDuyet" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

        .style9
        {
            text-decoration: underline;
            text-align: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:708px;">
        <tr>
            <td style="text-align: center">
                    <asp:Label ID="lblTitle2" runat="server" Font-Bold="True" 
                        ForeColor="#000099" Text="VĂN BẢN ĐÃ DUYỆT"></asp:Label>
                    </td>
        </tr>
        <tr>
            <td style="text-align: left">
                    <asp:Label ID="lblTuNgay" runat="server" Font-Bold="True" Text="Từ ngày:" 
                        CssClass="style9"></asp:Label>
                    <asp:TextBox ID="txtNgayTu" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="txtNgayTu_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="txtNgayTu" Format="dd/MM/yyyy">
                    </asp:CalendarExtender>
                    <asp:Label ID="lblDenNgay" runat="server" Font-Bold="True" Text="Đến ngày:" 
                        CssClass="style9"></asp:Label>
                    <asp:TextBox ID="txtNgayDen" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="txtNgayDen_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="txtNgayDen" Format="dd/MM/yyyy">
                    </asp:CalendarExtender>
                </td>
        </tr>
        <tr>
            <td>
                    <asp:Button ID="btnTimKiem" runat="server" onclick="btnTimKiem_Click" 
                        Text="Tìm kiếm" />
                    <asp:Button ID="btnTroVe" runat="server" onclick="btnTroVe_Click" Text="Trở về" 
                        Width="81px" />
                </td>
        </tr>
        <tr>
            <td>
                    <asp:GridView ID="gvVanBanDaDuyet" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" 
                        BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                        onpageindexchanging="gvVanBanDaDuyet_PageIndexChanging" Width="708px" 
                        DataKeyNames="MaVanBan" onrowdatabound="gvVanBanDaDuyet_RowDataBound">
                        <Columns>
                            <asp:BoundField DataField="SoVanBan" HeaderText="Số văn bản" />
                            <asp:BoundField DataField="TenVanBan" HeaderText="Tên văn bản" />
                            <asp:BoundField DataField="NoiDungVanBan" HeaderText="Nội dung văn bản" />
                            <asp:BoundField DataField="NgayKiemSoat" HeaderText="Ban hành" />
                            <asp:BoundField DataField="MaNguoiSoanThao" HeaderText="Người soạn thảo" />
                            <asp:BoundField DataField="MaNguoiKiemSoat" HeaderText="Người kiểm soát" />
                            <asp:TemplateField HeaderText="Nơi nhận">
                                <ItemTemplate>
                                    <table style="width:100%;">
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblNoiNhan" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <ItemStyle Wrap="True" />
                            </asp:TemplateField>
                            <asp:HyperLinkField DataNavigateUrlFields="TenFile" 
                                DataNavigateUrlFormatString="~/QLVB/VanBanLuuTru/{0}" DataTextField="TenFile" 
                                HeaderText="File đính kèm" />
                        </Columns>
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <RowStyle ForeColor="#000066" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                        <SortedAscendingHeaderStyle BackColor="#007DBB" />
                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                        <SortedDescendingHeaderStyle BackColor="#00547E" />
                    </asp:GridView>
                </td>
        </tr>
    </table>
</asp:Content>

